﻿using System.ComponentModel;

using VSTalk.Model;
using VSTalk.Tools;

using agsXMPP;

namespace VSTalk.Engine.Core.EntitySession
{
    internal class InterlocutorResource : IInterlocutorResource
    {
        private ShowType _show;
        private string _status;
        
        public InterlocutorResource(Interlocutor interlocutor, Jid jid)
        {
            Jid = jid;
            Interlocutor = interlocutor;
        }

        public Jid Jid { get; private set; }
        public Interlocutor Interlocutor { get; set; }

        public ShowType Show
        {
            get { return _show; }
            set
            {
                _show = value;
                PropertyChanged.Notify(() => Show);
            }
        }

        public string Status
        {
            get { return _status; }
            set
            {
                _status = value;
                PropertyChanged.Notify(() => Status);
            }
        }

        public event PropertyChangedEventHandler PropertyChanged;
    }
}